package com.zhang.service;


import com.myspring.anno.MyAutowired;
import com.myspring.anno.MyComponent;

@MyComponent("orderService1")
public class OrderService {

    @MyAutowired
//    @MyQualifier("userService")
    private UserService userService;


    @MyAutowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }


    public void generate() {
        System.out.println("OrderServicde"+"生成订单方法。。。。。");
//        System.out.println("注入Userservice=========="+userService);
    }
}
